class ActivitiesController < ApplicationController
	def new
		@activity_type = params[:activity_type]
		puts @activity_type
		render "new"
	end
		def create_activity
		activity = Activity.new
		activity.activity_name = params[:activityName]
		activity.activity_type = params[:activityType]
		activity.activity_people_num = params[:activityPeopleNum]
		activity.tel_phone = params[:telPhone]
		activity.activity_time = params[:activityTime]
		activity.activity_desc = params[:activityDesc]
		activity.user_name = params[:userName]
		activity.activity_address = params[:activityAddress]
		activity.created_at = Time.now
		activity.updated_at = Time.now
		activity.publish_status = 1
		activity.save
		render "success"
	end
end
